package lc_2578_最小和分割;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

class Solution {
	public int splitNum(int num) {
		char[] arr = String.valueOf(num).toCharArray();
		Arrays.sort(arr);
		int x = 0, y = 0;
		for (int i = 0; i < arr.length; i++) {
			if ((i & 1) == 0) {
				x = x * 10 + arr[i] - '0';
			} else {
				y = y * 10 + arr[i] - '0';
			}
		}

		return x + y;
	}

	public static void main(String[] args) {
		Integer m = 1000;
		Integer n = 1000;
		System.out.println(m < n);
		List<String> list = new ArrayList<>();
		System.out.println(list.get(-1));
	}
}